<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head"><strong><span class="icon-pencil-square-o"></span>公司简介信息</strong></div>
	  <textarea id="editor_id" style="width:900px;height:500px;">
		${about.content}
	  </textarea>
	  <script charset="utf-8" src="/kindeditor/kindeditor.js"></script>
	  <script charset="utf-8" src="/kindeditor/lang/zh_CN.js"></script>
		 <br>
		 <div class="form-group">
	        <div class="label">
	          <label></label>
	        </div>
	        <div class="field">
	          <button id="submitContent" class="button bg-main icon-check-square-o" type="submit"> 提交</button>
	        </div>
	      </div>
		</div>
		<form action="/addAbout.html" id="addFrom" method="post">
			<input type="hidden" id="content" name="content" >
		</form>
		<script>
			KindEditor.ready(function(K) {
		         editor = K.create('#editor_id', {
		        	//指定上传文件参数名称
		      		filePostName  : "uploadFile",
		      		//指定上传文件请求的url。
		      		uploadJson : 'pic/upload',
		      		//上传类型，分别为image、flash、media、file
		      		dir : "image"
		          });
			  });
			$(function(){
				$('#submitContent').click(function(){
					$('#content').val(editor.html());
					$('#addFrom').submit();
					alert('修改成功');
				})
			})
		</script>
	</body>
</html>